/***************************************************
 ** @Desc : This file for 系统参数
 ** @Time : 2018.12.22 14:05 
 ** @Author : Joker
 ** @File : system_params.go
 ** @Last Modified by : Joker
 ** @Last Modified time: 2018.12.22 14:05
 ** @Software: GoLand
****************************************************/
package utils

//固定请求参数
const (
	REQUEST_URL   = "https://openapi.alipay.com/gateway.do" //请求地址
	DATA_FORMAT   = "JSON"                                  //数据格式
	CHARSET       = "utf-8"                                 //数据编码
	SIGN_TYPE     = "RSA2"                                  //加密算法
	VERSION       = "1.0"                                   //接口版本
	SETTLE_METHOD = "alipay.trade.order.settle"             //分账请求接口名称
	QUERY_METHOD  = "alipay.trade.query"                    //查询请求接口名称
)

const PRIVATE = `-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAloPJUUwV3Szv/KZ+A2rRvBjsVpBkmuGvjN+1s5SvxkKxY84S
AjamdumnyXmcnXL0jc0f5aUnAhehtL2qfFy+QyKORxaApdytBWFhG+sZTwdOwlW9
lrhS8p1HgzoDMyb7Gvc3xMatdalS0s7MfNFdK/ZVsGp9BWgjxACq0TCLzkIu6usL
yjQdmUaQlcoXW2v9URuVyK7YooyazPaYMD2OWlzhK1iIwNKcXg+/eUpO62N/NMuO
efxmDbF95QgfimS9ZJInQrxnDA8QhrZDie9ryWTD7VPHC+L1z1RC6PjLi9rXRZRK
HCW1QR9ZBSPcpINtMHhdpTTYB3OzLcosTcpvlwIDAQABAoIBAGkcOU/LyYz+n82Z
W3D5fORVp15AUfGTX+wKIjL5x9K1qnmfZBYlohRy0diyU7vkloIcWIUf02Dzrdqx
hUh53+i0ThW40jiCJlYWjiFYCgGVgdvW0qJZsJt7WIB819U2CK/pKwoBEQuVJqDP
CCC2eNGFooujohFPi4KKUL/rngZ4QVrWVU+XBVM4axaIhCfKzPqtyHXXNHjnRYum
tBIDLlFOgzalOqL/wvmr6J85BtXATJ0WWyK9dijbSBuI5hiB2lKuu0RqCT+IwSIQ
GHlY9eS4w5pXF/2kdPMkNMtlb7dkEvmQbL6I+ipmBlCbRfllo9Uk/tyoiDKM5Paq
1xn7vvkCgYEAyRfsluzzDaRyvWQ7jSDMIZqye45BsW8UilvCXX6vtSooL/lYgvKi
IIp4mdGr9R/6IXu49LD8q66OgDoDETLrSffc2e0X+yJlkxlPcSgON8ngC7AZg6FY
6yMqeadNTFiN7s/V78N7Oz2Y9VFMsMQ/cE4PZH+M+wyby8dfIoxf4BsCgYEAv5yA
26yVM3OhChbFgQDmNajkbDQstrP1ufX0UDarAXb4hPo3/umzq1urw2XRaIpYvuF4
LafcAhcg4d/t2bcearOIjz+EoTMFfpjwyKFbxIPNXezVTERCkz8zM1FriLRtvuhQ
Yzk55C1f9TFbQoPVli61AC+K/AjnsQ47NuynvjUCgYEAgMGKwNASh8ell9JXtvMr
ANE2OppJQbyn4DcEaiy1gD/v31e97opAeKlwsrxnZ9oDo/C96h5widSIdV2vnRGH
SaMki3ydgDTz6I2qKf/Fqr7db15f18I1Vsj7Z01R1vJUXnZAuvXlL3cvOtPFUOE2
5Ud135kzwYK/Nmj/ZvWOZcUCgYB6zr/4C8EE3RNV+ApWCFGECt98SmRuJSFVMsKH
tsIbijj2YbkJ9JdnOLX54oQ40JLYpIH2ISPtYw18N52mcKtaD/9ycG99McpPvY51
yJWcei1iCa0b2JQi89rJBWI6mAnO1e7P6ZmlGT/rUtr+4qg+PWlc2RvnNX3qCQkC
xuMsEQKBgQCTBxcOOrPykZBMD929UQHXRlbV0hELSNRYyadgnm1eCbksAvs8M8gB
bmq6GGhIZ13zTUcthS27lXl/QebDaIdGjvGxKg842ns+Ukpc1A8h1/vCGsCfT2Ym
qI9CMpoE50XABd8orm1zDIpIMK+6l+TvlD/lLByOWotqC6XNGRphtw==
-----END RSA PRIVATE KEY-----
`

//分账信息
type Royalty struct {
	TransOut         string `json:"trans_out"`
	TransIn          string `json:"trans_in"`
	Amount           string `json:"amount"`
	AmountPercentage string `json:"amount_percentage"`
	Desc             string `json:"desc"`
}

//成功与否的标记
const (
	FAILED_FLAG    = -9
	FAILED_STRING  = "操作失败! "
	SUCCESS_FLAG   = 9
	SUCCESS_STRING = "操作成功! "
)

const COOKIE_EXPIRE = 30